package com.live.dengdengtv.activity.setting;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.live.dengdengtv.BaseActivity;
import com.live.dengdengtv.R;
import com.live.dengdengtv.utils.Notice;

/**
 * Created by leiyun on 2016/8/5.
 */
public class FeedbackActivity extends BaseActivity implements View.OnClickListener{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feedback);

        initTitle();
    }



    private void initTitle() {
        ImageView title_left_iv = (ImageView) findViewById(R.id.title_left_iv);
        title_left_iv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        TextView title_center_tv = (TextView) findViewById(R.id.title_center_tv);
        title_center_tv.setText("意见反馈");

        TextView title_right_tv = (TextView) findViewById(R.id.title_right_tv);
        title_right_tv.setText("");
    }

    @Override
    public void onClick(View v) {

        Intent intent = new Intent();
        switch (v.getId()){
            case R.id.submit_bt:
                Notice.alert(context,"提交成功!");
                break;
//            case R.id.setting_tv:
//                intent.setClass(context, SettingActivity.class);
//                break;
            default: return;
        }

        if(null != intent.getComponent()){
            startActivityForResult(intent, 100);
        }

    }

}
